import requests
from bs4 import BeautifulSoup

url = 'https://www.10jqka.com.cn/'

# 发送网络请求获取网页内容
response = requests.get(url)
html_content = response.text

# 使用BeautifulSoup解析网页内容
soup = BeautifulSoup(html_content, 'html.parser')

# 找到诉讼信息所在的标签或CSS选择器，并提取相关内容
lawsuit_info = soup.find('div', class_='lawsuit-info')
if lawsuit_info:
    # 提取诉讼信息中的标题和内容
    title = lawsuit_info.find('h1').text
    content = lawsuit_info.find('p').text

    # 打印诉讼信息
    print('标题:', title)
    print('内容:', content)
else:
    print('未找到诉讼信息')